Skip to content

Conversation

@ToMESSKa
Copy link
Contributor

@ToMESSKa ToMESSKa commented Dec 16, 2025

INSTUI-4871

ISSUE:

  • the remaining of tokens in FormFieldGroup needs to be removed because they are now longer needed for newError-style errors
  • FormFieldMessages theme.ts needs to be removed

TEST PLAN:

  • test FormField, FormFieldGroup, CheckBoxGroup, RadioInputGroup and DateTimeInput examples with errors, there should be no visual change from the current v12

@github-actions
Copy link

github-actions bot commented Dec 16, 2025

PR Preview Action v1.8.0
Preview removed because the pull request was closed.
2026-01-07 14:32 UTC

Comment on lines 46 to -48
label: 'formFieldGroup',
border: `${componentTheme.borderWidth} ${componentTheme.borderStyle} ${componentTheme.borderColor}`,
borderRadius: componentTheme.borderRadius,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tokens were used for the old error style (border around all the children, newError style does not use them), but I forgot to remove them form here: #2273

Comment on lines 38 to 39
const generateStyle = (
componentTheme: FormFieldGroupTheme,
_componentTheme: FormFieldGroupTheme,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both FormFieldGroup and FormFieldMessages are components that have no tokens anymore and therefore the style.ts files have no theme.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the FormFieldGroupTheme type, its not used? As I see in withStyle its always an empty object, so it can be like this:

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
  _componentTheme: {},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it like that above

@ToMESSKa ToMESSKa self-assigned this Dec 16, 2025
@ToMESSKa ToMESSKa force-pushed the INSTUI-4871-form-field-group-rework branch from 4549eee to e2711a5 Compare December 16, 2025 10:56
@ToMESSKa ToMESSKa changed the title feat(ui-form-field): rework FormFieldGroup [v12] feat(ui-form-field): rework FormFieldGroup Dec 16, 2025
Comment on lines 38 to 39
const generateStyle = (
componentTheme: FormFieldGroupTheme,
_componentTheme: FormFieldGroupTheme,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the FormFieldGroupTheme type, its not used? As I see in withStyle its always an empty object, so it can be like this:

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
  _componentTheme: {},

@ToMESSKa ToMESSKa force-pushed the INSTUI-4871-form-field-group-rework branch from e2711a5 to a7242d7 Compare January 6, 2026 11:00
@ToMESSKa ToMESSKa requested a review from matyasf January 6, 2026 11:21
Copy link
Contributor

@joyenjoyer joyenjoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@ToMESSKa ToMESSKa merged commit 7f6f323 into v12 Jan 7, 2026
8 of 9 checks passed
@ToMESSKa ToMESSKa deleted the INSTUI-4871-form-field-group-rework branch January 7, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants